﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace LTHD_Web
{
    public partial class Xoadiadiemaspx : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int placeid = int.Parse(Request["id"]);
            int accountid = int.Parse(Request["account"]);

            dbDataContext db = new dbDataContext();
            var query = from n in db.diadiems where n.id == placeid  select n;

            query.First().status = -1;
            db.SubmitChanges(); 

            lb_content.Text = placeid.ToString() + accountid.ToString() ; 
        }
    }
}

